import requests


class RegisterTest:
    def __init__(self):
        self.url = "http://129.211.129.101:9006/user/register.do"
        self.user_info = {
            "username": "lllljl1",
            "password": "123456",
            "email": "lllljjj@qq.com",
            "phone": "13555555556",
            "question": "最喜欢的书",
            "answer": "阿衰"
        }

    def register_test(self):
        s = requests.session()
        res = s.post(self.url, data=self.user_info).json()
        print(res)


if __name__ == '__main__':
    RegisterTest().register_test()
